﻿/* ==========================================================================
   Ligat Ha'al - Teams & Trophies Page
   Theme: Dark Glass Luxury + THE PREMIUM GOLDEN HEADER
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;700;900&display=swap');

:root {
    --accent-gold: #d4af37;
    --accent-green: #00ff41;
}

/* --- תיקון גלילה אופקית ופוטר דבוק --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* עיצוב כללי לעמוד */
body {
    font-family: 'Assistant', 'Segoe UI', sans-serif;
    background-color: #0f1012;
    padding: 20px 20px 0 20px;
    background-image: url('../../images/IMG_0234.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.85) 100%);
        z-index: -1;
    }

.glowing-wave-header {
    font-size: clamp(38px, 7vw, 80px); /* גודל אדפטיבי למסכים שונים */
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 12px;
    margin: 40px 0;
    /* גרדיאנט מוזהב עם אפקט מתכתי */
    background: linear-gradient( to bottom, #ffffff 0%, var(--accent-gold) 50%, #8a6d3b 100% );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* צללים ליצירת עומק תלת-ממדי */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.8));
    position: relative;
    animation: titleEntrance 1.5s ease-out;
}

    /* אפקט נצנוץ שעובר על הטקסט */
    .glowing-wave-header::before {
        content: attr(data-text); /* דורש להוסיף data-text="LIGAT HA'AL" ב-HTML */
        position: absolute;
        inset: 0;
        background: linear-gradient( 45deg, transparent 45%, rgba(255, 255, 255, 0.6) 50%, transparent 55% );
        background-size: 200% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: shine 4s infinite linear;
        z-index: 1;
    }

    /* פס תחתון מעוצב (The Wave) */
    .glowing-wave-header::after {
        content: "";
        display: block;
        width: 100px;
        height: 5px;
        background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
        margin: 20px auto;
        border-radius: 50px;
        box-shadow: 0 0 20px var(--accent-gold);
        transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .glowing-wave-header:hover::after {
        width: 1900px;
        max-width: 90%;
    }

/* --- אנימציות --- */
@keyframes titleEntrance {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        letter-spacing: 25px;
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 12px;
    }
}

@keyframes shine {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

/* --- תארים (Trophies) - זכוכית --- */
.trophies-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 50px;
    gap: 15px;
    flex-wrap: wrap;
}

.trophy {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    width: 22%;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

    .trophy img {
        width: 100%;
        height: 150px;
        object-fit: contain;
        margin-bottom: 15px;
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    }

    .trophy h3 {
        color: var(--accent-gold);
        margin: 10px 0;
    }

    .trophy:hover {
        transform: translateY(-10px);
        border-color: var(--accent-gold);
    }

/* --- קבוצות (Teams) - זכוכית --- */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    flex: 1; /* דוחף את הפוטר לתחתית */
}

.team {
    background: rgba(30, 32, 38, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 85%;
    max-width: 1100px;
    display: flex;
    flex-direction: row;
    direction: rtl;
    align-items: center;
    padding: 25px;
    transition: all 0.3s ease;
}

    .team:hover {
        transform: scale(1.02);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .team img {
        width: 130px;
        height: 130px;
        object-fit: contain;
        margin-left: 30px;
    }

.team-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* --- פוטר דבוק לתחתית --- */
footer, .footer {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background: rgba(15, 16, 18, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- צבעי קבוצות --- */
.team.maccabi-tlv h3 {
    color: #ffd700;
}

.team.maccabi-haifa h3 {
    color: var(--accent-green);
}

.team.beitar h3 {
    color: #ffcc00;
}

.team.hapoel-beer-sheva h3 {
    color: #ff4d4d;
}

.team.maccabi-netanya h3 {
    color: #ffcc00;
}

.team.hapoel-haifa h3 {
    color: #ff4d4d;
}

.team.maccabi-petah-tikva h3 {
    color: #3399ff;
}

.team.kiryat-shmona h3 {
    color: #1e90ff;
}

.team.bnei-sakhnin h3 {
    color: #ff4444;
}

.team.hapoel-jerusalem h3 {
    color: #ff3333;
}

.team.ashdod h3 {
    color: #ff4500;
}

.team.bnei-reineh h3 {
    color: #1e90ff;
}

.team.hapoel-hadera h3 {
    color: #ff6347;
}

.team.ironi-tiberias h3 {
    color: #4682b4;
}

/* רספונסיביות למובייל */
@media screen and (max-width: 768px) {
    .trophies-container {
        flex-direction: column;
        align-items: center;
    }

    .trophy {
        width: 90%;
    }

    .team {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

        .team img {
            margin-left: 0;
            margin-bottom: 15px;
        }
}
